package com.detooa.detooa.utils.bean.de.response;

import java.io.Serializable;
import java.sql.Date;

import com.detooa.common.utils.DateUtils;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@ToString
@EqualsAndHashCode(callSuper = false)
public class DeLinkVo implements Serializable {
    private static final long serialVersionUID = 1L;
    private Boolean valid;// "valid": true,
    private Boolean enablePwd;// "enablePwd": false,
    private String uri;// "uri":
    private String pwd;// "pwd": "c1Tf",
    private Long overTime;// "overTime": null

    public String getOverTimeFmt()
    {
        if (null != overTime) {
            Date date = new Date(overTime);
            return DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, date);
        }
        return "";
    }
}
